package com.legendshop.openportal.sdk.model.request;

import cn.hutool.core.annotation.Alias;
import com.legendshop.openportal.sdk.model.BaseRequest;
import com.legendshop.openportal.sdk.model.constants.ApiPathConstants;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * @author jzh
 * @version 1.0.0
 * @title AuthRequest
 * @date 2024/6/18 17:36
 * @description：
 */
@Data
public class AuthRequest extends BaseRequest {

    private static final long serialVersionUID = -5078839264436069903L;

    /**
     * 客户端ID
     */
    @Alias(value = "client_id")
    @ApiModelProperty("客户端ID")
    private String clientId;

    /**
     * 客户端秘钥
     */
    @ApiModelProperty("客户端秘钥")
    @Alias(value = "client_secret")
    private String clientSecret;

    /**
     * 使用域
     */
    @ApiModelProperty("使用域")
    @Alias(value = "scope")
    private String scope;

    @Override
    @ApiModelProperty(hidden = true)
    public String getApiPath() {
        return ApiPathConstants.GET_AUTH_TOKEN;
    }
}
